load("@io_bazel_rules_dotnet//dotnet:defs.bzl", "DOTNET_CORE_FRAMEWORKS", "core_binary")

[core_binary(
    name = "{}_nuget2bazel".format(framework),
    srcs = glob(["*.cs"]),
    dotnet_context_data = "@io_bazel_rules_dotnet//:core_context_data_{}".format(framework),
    native_deps = "@core_sdk_{}//:native_deps".format(framework),
    deps = [
        "@commandlineparser//:netcoreapp2.1_core",
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:netstandard.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.collections.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.console.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.core.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.io.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.io.filesystem.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.io.filesystem.primitives.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.linq.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.private.corelib.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.runtime.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.runtime.extensions.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.security.cryptography.primitives.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.text.encoding.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.threading.tasks.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.xml.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.xml.linq.dll".format(framework),
        "@io_bazel_rules_dotnet//dotnet/stdlib.core/{}:system.xml.xdocument.dll".format(framework),
        "@newtonsoft.json//:netcoreapp2.1_core",
        "@nuget.common//:netcoreapp2.1_core",
        "@nuget.configuration//:netcoreapp2.1_core",
        "@nuget.frameworks//:netcoreapp2.1_core",
        "@nuget.packagemanagement//:net46_net",
        "@nuget.packaging.core//:netcoreapp2.1_core",
        "@nuget.packaging//:netcoreapp2.1_core",
        "@nuget.projectmodel//:netcoreapp2.1_core",
        "@nuget.protocol//:netcoreapp2.1_core",
        "@nuget.resolver//:netcoreapp2.1_core",
        "@nuget.versioning//:netcoreapp2.1_core",
    ],
) for framework in DOTNET_CORE_FRAMEWORKS]
